<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="front" />
<title>微信支付</title>
<link href="${ctxStatic }/xiake/css/list.css" rel='stylesheet' type='text/css' />	
</head>
<body>
	<div>${message}</div>
	<div class="container font_larger_size">
		<form class="wxpay">
			<div>
				扫一扫微信二维码完成支付<br/>
				<img src="/quickdeer/f/pay/qrCode?code_url=${code_url}"/>
			</div>
			<div>
				商品名称：${fns:getConfig('common_subject')}
			</div>
			<div>
				支付金额：${orders.dueamount }
			</div>
			<div style="margin: 10px;">支付完成后请关闭页面</div>
		</form>	 
	</div>
	<script type="text/javascript">
		setInterval("orderStatus()",1000);
		function orderStatus() {
			$.post('${pageContext.request.contextPath}/orderStatus?orderid=${orders.orderid }',function(data){
				if(data == '1'){
					window.location.href = '${ctxFront}/paySuccess';
				}
			});
		}
	</script>
</body>
</html>